<?php

require_once "cvsclient.php";

PEAR::setErrorHandling(PEAR_ERROR_DIE);

//$ns = &Net_CVS::connect(":pserver:cvsread@cvs.php.net:/repository");
$ns = &new Net_CVS();
$ns->connect(":pserver:cvsread@cvs.php.net:/repository");

if (PEAR::isError($ns)) {
    die ($ns->getMessage());
}

//print_r($ns->features);
//print_r($ns->_socket->getStatus());

// $ns->getModules();

$ns->_debug = true;

print_r(
//$ns->expandModules("php-src")
$ns->listFiles()
);
